﻿using System.ComponentModel.DataAnnotations;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using Yitter.IdGenerator;

namespace T.E.ERP.Write.API.Applicantions.Command.ProcurementsCommand
{
    
    /// <summary>
    /// 采购退货单命令
    /// </summary>
    public class AddPurchaseArrivalCommand:IRequest<APIResult<object>>
    {
        /// <summary>
        /// 退货单id
        /// </summary>
        public int Preturnorderid { get; set; }
        /// <summary>
        /// 跟单编号
        /// </summary>
        public int Copynumber { get; set; }
        /// <summary>
        /// 开票通知单主键
        /// </summary>
        public int InvoiceSettlementEntityId { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public int DocumentStuct { get; set; }
        /// <summary>
        /// 供应商（外键)
        /// </summary>
        public int Supid { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public string ReturnsNum { get; set; }
        /// <summary>
        /// 出库数量
        /// </summary>
        public string OutinNum { get; set; }
        /// <summary>
        /// 补收数量
        /// </summary>
        public string CatchNum { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime DocumentTime { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocumentCode { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string DocumentState { get; set; }
        public string Caozuoyuan { get; set; }
        public string Shenheyuan { get; set; }
        public DateTime ShenheDate { get; set; }

        /// <summary>
        /// 业务状态
        /// </summary>
        public int BusinessStuct { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        public int Documentid { get; set; }
        /// <summary>
        /// 退货仓库
        /// </summary>
        public int Returnwarehouse { get; set; }
        /// <summary>
        /// 退货原因
        /// </summary>
        public string Reasonreturn { get; set; }
        /// <summary>
        /// 备注原因
        /// </summary>
        public string Notereason { get; set; }

        /// <summary>
        /// 物料编码(外键)
        /// </summary>
        public long material_code { get; set; }

    }
}
